<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../../public/common.jsp"%>
<body>
	<form class="layui-form" style="margin-top: 15px">
	<input type="hidden" id="userId" name="userId">
		<div class="layui-form-item">
			<label class="layui-form-label">帐号</label>
			<div class="layui-input-block">
				<input type="text" readonly = "readonly" id = "username" name="username" lay-verify="title"
					autocomplete="off" placeholder="请输入帐号" class="layui-input layui-unselect layui-disabled">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">密码</label>
			<div class="layui-input-block">
				<input type="password" id = "password" name="password" lay-verify="title"
					autocomplete="off" placeholder="密码" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">姓名</label>
			<div class="layui-input-block">
				<input type="text" id="realname" name="realname" lay-verify="title"
					autocomplete="off" placeholder="请输入姓名" class="layui-input">
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">头像</label>
				<div class="layui-input-inline">
					<img id="avatarSrc" src="" style="width: 38px; height: 38px">
					<input type="hidden" id="avatar" name="avatar">
					<button type="button" class="layui-btn" id="picture">上传图片</button>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">电话</label>
			<div class="layui-input-block">
				<input type="tel" id="phone" name="phone" placeholder="请输入电话"
					lay-verify="required|phone" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">邮箱</label>
			<div class="layui-input-block">
				<input type="text" placeholder="请输入邮箱" id="email" name="email"
					lay-verify="email" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">性别</label>
			<div class="layui-input-block">
				<input type="radio" name="sex" value="1" title="男" >
				<input type="radio" name="sex" value="2" title="女">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">选择角色</label>
			<div class="layui-input-block">
				<select id="roleId" name="roleId" lay-filter="aihao">
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="editUser" lay-filter="editUser">立即提交</button>
				
			</div>
		</div>
	</form>
</body>
<!-- 加载js文件-->
<script type="text/javascript" src="/LarryMS/common/layui/layui.js"></script>
<script type="text/javascript">
	layui.cache.page = 'system/upms/user/edit';
	layui.config({
		version : "1.0.0",
		base : '/LarryMS/common/'
	}).extend({
		larry : 'js/base'
	}).use('larry');
</script>

</html>